package com.wzh.org.graphics

class OrgTreeNode {

    lateinit var name:String
    lateinit var roleName:String
    var parentNode: OrgTreeNode? = null

    /**
     * 记录本节点所在的列
     */
    var column:Int = 0
    var row:Int = 0

    var columnNum:Int = 0
    var rowNum:Int = 0

    /**
     * 记录本节点的坐标
     */
    var left:Float = 0.0f
    var top:Float = 0.0f
    var right:Float = 0.0f
    var bottom:Float = 0.0f

    var isMoving:Boolean = false

    var children: MutableList<OrgTreeNode>? = null

    var rightTreeNode: OrgTreeNode? = null
    var leftTreeNode: OrgTreeNode? = null
    override fun toString(): String {
        return "OrgTreeNode(name='$name', roleName='$roleName', column=$column, row=$row, children=$children, rightTreeNode=$rightTreeNode, leftTreeNode=$leftTreeNode)"
    }


}